package com.itheima.stock.service;

import com.itheima.stock.common.domain.InnerMarketDomain;
import com.itheima.stock.common.domain.Stock4EvrDayDomain;
import com.itheima.stock.common.domain.Stock4MinuteDomain;
import com.itheima.stock.common.domain.StockUpdownDomain;
import com.itheima.stock.pojo.StockBlockRtInfo;
import com.itheima.stock.vo.req.LoginReqVo;
import com.itheima.stock.vo.resp.LoginRespVo;
import com.itheima.stock.vo.resp.PageResult;
import com.itheima.stock.vo.resp.R;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface StockUserService {
    R<LoginRespVo> login(LoginReqVo respVo);

    R<Map<String, String>> captcha();

    R<List<InnerMarketDomain>> stockmarket();

    R<List<StockBlockRtInfo>> stockBlockRtInfo();

    R<List<StockUpdownDomain>> increase();

    R<PageResult<StockUpdownDomain>> stockAll(Integer page,Integer pageSize);

    R<Map<String,List<Map<String,String>>>>  stockUpdownCount();

    void export(HttpServletResponse response , Integer page ,Integer pageSize) throws IOException;

    R<Map<String, List<Map<String, String>>>> tradevol();

    R<Map<Map<String, String>, Map<String,List<Map<String, String>>>>> updown();

    R<List<Stock4MinuteDomain>> timeSharing(String code);

    R<List<Stock4EvrDayDomain>> dkline(String code);
}
